package com.atung.parking.config.result;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * @author Administrator
 */
public class PageRequest  implements Serializable {

    @ApiModelProperty("页码")
    private @Min(1L) int pageNum = 1;

    @ApiModelProperty("条数")
    private @Min(1L) @Max(999) int pageSize = 10;

    public PageRequest() {
    }


    public int getPageNum() {
        return this.pageNum;
    }

    public int getPageSize() {
        return this.pageSize;
    }


    public void setPageNum(final int pageNum) {
        this.pageNum = pageNum;
    }

    public void setPageSize(final int pageSize) {
        this.pageSize = pageSize;
    }


}